<?php
	$category_id = _POST('id');
	if(is_numeric($category_id )){
		$db->delete('tblcategory', "category_id=$category_id");
		$db->delete('tblcategory', "parent_id=$category_id");
	}
	redir($baseUrl .'/admin/?c=category&a=list');